package cn.wen.eeayjoke.ui;

import android.view.View;

import butterknife.BindView;
import cn.wen.base.image.ImageLoader;
import cn.wen.base.view.XImageView;
import cn.wen.core.titlebar.DefTitleBar;
import cn.wen.core.ui.AppActivity;
import cn.wen.eeayjoke.R;

/**
 * 圆角、圆、带边框的ImageView
 * 测试
 */

public class XImageViewTestActivity extends AppActivity {
    @BindView(R.id.image1)
    XImageView mImage1;
    @BindView(R.id.image2)
    XImageView mImage2;
    @BindView(R.id.image3)
    XImageView mImage3;

    @Override
    protected Object getContentLayout() {
        return R.layout.activity_x_image;
    }

    @Override
    protected void initTitle(DefTitleBar titleBar) {
        titleBar.setTitle("圆角、圆、带边框的ImageView测试");
    }

    @Override
    protected void initView(View contentView) {
        String url = "http://h.hiphotos.baidu.com/image/pic/item/3bf33a87e950352a61a5bfc25a43fbf2b3118b30.jpg";
        ImageLoader.displayImage(mImage1,url);
        ImageLoader.displayImage(mImage2,url);
        ImageLoader.displayImage(mImage3,url);
    }
}
